/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 菜单删除 DELETE /scenic/website/delWebsiteMenuById */
export async function scenicWebsiteDelWebsiteMenuByIdUsingDelete({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicWebsiteDelWebsiteMenuByIdUsingDeleteParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingstring>('/scenic/website/delWebsiteMenuById', {
    method: 'DELETE',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 菜单查询 GET /scenic/website/getWebsiteMenuById */
export async function scenicWebsiteGetWebsiteMenuByIdUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicWebsiteGetWebsiteMenuByIdUsingGetParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyinggoujiancaidanfuzivo>(
    '/scenic/website/getWebsiteMenuById',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 文章浏览次数统计接口 GET /scenic/website/messageViews */
export async function scenicWebsiteMessageViewsUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicWebsiteMessageViewsUsingGetParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/scenic/website/messageViews', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** pageMenuPhotos POST /scenic/website/pageWebsiteMenu */
export async function scenicWebsitePageWebsiteMenuUsingPost({
  body,
  options,
}: {
  body: API.MenuPhotosBo0b43e6d8F35946ef8a9d28f28b09538a;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVoMenuPhotosVo>(
    '/scenic/website/pageWebsiteMenu',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 文章详情接口包含上下文章 GET /scenic/website/queryMessageDetails */
export async function scenicWebsiteQueryMessageDetailsUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicWebsiteQueryMessageDetailsUsingGetParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingwenzhangxiangqingbaohanshangxiawenzhangvo>(
    '/scenic/website/queryMessageDetails',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 分页文章列表条件查询 POST /scenic/website/queryMessagePageDetails */
export async function scenicWebsiteQueryMessagePageDetailsUsingPost({
  body,
  options,
}: {
  body: API.MessageDetailsBod360db3bC3534ddc8f5902b54e29e492;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVoxiaoxivo>(
    '/scenic/website/queryMessagePageDetails',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 菜单分页查询 POST /scenic/website/queryWebsiteMenu */
export async function scenicWebsiteQueryWebsiteMenuUsingPost({
  body,
  options,
}: {
  body: API.WebsiteMenuBo821057c77a984965Ac7018719b184419;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVogoujiancaidanfuzivo>(
    '/scenic/website/queryWebsiteMenu',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 官网详情 GET /scenic/website/queryWebsiteMenuInfo */
export async function scenicWebsiteQueryWebsiteMenuInfoUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicWebsiteQueryWebsiteMenuInfoUsingGetParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingguanwangxiangqingvo>(
    '/scenic/website/queryWebsiteMenuInfo',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** saveMenuPhotos POST /scenic/website/saveMenuPhotos */
export async function scenicWebsiteSaveMenuPhotosUsingPost({
  body,
  options,
}: {
  body: API.MenuPhotosBoa124da2dA4e649888840D58bbc557863;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/scenic/website/saveMenuPhotos', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 菜单修改 PUT /scenic/website/updateWebsiteMenu */
export async function scenicWebsiteUpdateWebsiteMenuUsingPut({
  body,
  options,
}: {
  body: API.WebsiteMenuBo255ead48655e4086824f6fef4c894e3e;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/scenic/website/updateWebsiteMenu', {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 官网浏览次数统计接口 GET /scenic/website/websiteViews */
export async function scenicWebsiteWebsiteViewsUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicWebsiteWebsiteViewsUsingGetParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/scenic/website/websiteViews', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
